#include <iostream>
#include "NamePipe.hpp"

int main()
{
    namedpipe pipe(fifo_path, User);

    if (pipe.OpenForWrite())
    {
        std::cout << "client open namd pipe done" << std::endl;
        while (true)
        {
            std::cout<<"Please Enter>";
            std::string message;
            std::getline(std::cin,message);
            pipe.WriteNamedPipe(message);
        }
    }

    return 0;
}